package com.inctech.clz2.test1;

public class FirstQuestion {
	public int[] maxAndMin(){
		int minCount = 0;
		int maxCount = 0;
		
		label1:
		for (int i = 200; i <= 400; i++) {
			for (int j = 2; j < i; j++) {
				if(0 == i%j){
					continue label1;
				}
			}
			
			minCount = i;
			break;
		}
		
		label2:
		for (int i = 400; i >= 200; i--) {
			for (int j = 2; j < i; j++) {
				if(0 == i%j){
					continue label2;
				}
			}
			
			maxCount = i;
			break;
		}
		
		int[] arrs = {minCount,maxCount};
		return arrs;
	}
}
